package com.hkx.entity;

import com.hkx.core.BaseEntity;
import java.io.Serializable;
import java.time.LocalDate;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * <p>
 * 管理员表
 * </p>
 *
 * @author huangkexing
 * @since 2024-08-05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Admin extends BaseEntity {

    private static final long serialVersionUID = 1L;

    public Admin(Long id, Boolean status) {
        super(id);
        this.status = status;
    }

    public Admin(String name, String nickyName, Integer sex, LocalDate birthday, String phone, String email, String password, String icon) {
        this.name = name;
        this.nickyName = nickyName;
        this.sex = sex;
        this.birthday = birthday;
        this.phone = phone;
        this.email = email;
        this.password = password;
        this.icon = icon;
    }

    public Admin(Long id, String name, String nickyName, Integer sex, LocalDate birthday, String phone, String email, String icon) {
        super(id);
        this.name = name;
        this.nickyName = nickyName;
        this.sex = sex;
        this.birthday = birthday;
        this.phone = phone;
        this.email = email;
        this.icon = icon;
    }

    /**
     * 姓名
     */
    private String name;

    /**
     * 昵称
     */
    private String nickyName;

    /**
     * 1-男 0-女
     */
    private Integer sex;

    /**
     * 生日
     */
    private LocalDate birthday;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 电子信箱
     */
    private String email;

    /**
     * 密码
     */
    private String password;

    /**
     * 状态
     */
    private Boolean status;

    /**
     * 头像
     */
    private String icon;


}
